//
//  LLT_PlayerMatchViewCell_LXM.m
//  CoderLLT
//
//  Created by 刘晓萌 on 15/12/15.
//  Copyright © 2015年 刘晓萌. All rights reserved.
//

#import "LLT_PlayerMatchViewCell_LXM.h"
#import "ProgressBarView.h"
@interface LLT_PlayerMatchViewCell_LXM ()
@property (weak, nonatomic) IBOutlet UILabel *kinds;
@property (weak, nonatomic) IBOutlet UILabel *count;
@property (weak, nonatomic) IBOutlet UILabel *victorCount;
@property (weak, nonatomic) IBOutlet UILabel *failurCount;
@property (weak, nonatomic) IBOutlet UILabel *matchVictoryPer;

@property (weak, nonatomic) IBOutlet UIView *progresView;
@property (strong,nonatomic) ProgressBarView *pbv;
@end

@implementation LLT_PlayerMatchViewCell_LXM

- (void)awakeFromNib {
    // Initialization code
}

-(void)setPlayerRecordModel:(LLT_PlayerRecordModel *)playerRecordModel{
    if (_playerRecordModel != playerRecordModel) {
        _playerRecordModel = nil;
        _playerRecordModel = playerRecordModel;
    }
    self.kinds.text = _playerRecordModel.fightType;
    self.count.text = _playerRecordModel.matchCount;
    self.victorCount.text = _playerRecordModel.matchVictorCount;
    self.failurCount.text = _playerRecordModel.matchFailureCount;
    self.matchVictoryPer.text = _playerRecordModel.matchVictoryPer;
   
    self.pbv = [ProgressBarView progressBarViewInstanceByFrame:self.progresView.bounds andProgressNum:[_playerRecordModel.matchVictoryPer floatValue]];
    [self.progresView addSubview:self.pbv];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
